{*
 * This file is part of the Agora distribution. 
 * Detailed copyright and licensing information can be found
 * in the gpl-3.0.txt file which should be included in the distribution.
 * 
 * @version		$Id: 3.0.14 Olympus 2010-09-28 rammstein4o $
 * @copyright  2007 - 2010 jVitals
 * @license   GPLv3 Open Source
 * @link       http://jvitals.com
 * @since      File available since initial release
 *}	

<form name="adminForm" method="POST">
	{$html->form->param('option','com_agora')}
	{$html->form->param('task','forums')}
	{$html->form->param('action','save_permissions')}

	{$html->form->param('form[forum_id]',$forum_id)}
	{$html->form->param('form[group_id]',$group_id)}
	{$html->form->param('form[role_id]',$role_id)}

	<fieldset>
		<legend>##Edit permissions for forum##</legend>

		<table class="admintable">
			<tbody>
				<tr>
					<td class="key">##Select enabled permissions##</td>
					<td>
                       
                        {foreach from=$permissions key=perm_name item=perm_value}
							<input type="checkbox" name="form[{$perm_name}]" value="{$perm_name}" {if $perm_value}checked="checked"{/if}/>{$perm_name} <br />
                            
                            
							{/foreach}
                     
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="submit" value="##Submit##"/>
						<input type="button" value="##Cancel##" onclick="window.parent.document.getElementById('sbox-window').close();"/>
					</td>
				</tr>
			</tbody>
		</table>

	</fieldset>
</form>